package cwb1;

import java.util.HashMap;


/**
 * This interface represents a data that can be used by the interface. All the fields of implemeting classes are objects that the
 * database can store. Also has every data a kind and an Id.
 * @author Aurora
 *
 */
public interface Data {
	
	/**
	 * Returns the fields of an object in a Map with the names of the fields as key.
	 * 
	 * @return the fields of an object in a Map with the names of the fields as key.
	 */
	abstract public HashMap<String,Object> getProperties();
	
	/**
	 * Returns the Id of the data
	 * 
	 * @return The id of the data.
	 */
	abstract public String getId();
	
	/**
	 * Returns the kind of the data.
	 * 
	 * @return The kind of the data.
	 */
	abstract public String getKind();
}
